package com.foo.web.token.config;

import com.foo.common.core.domain.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/wechat/api/token")
public class TokenError {

    @GetMapping("/expired")
    @ResponseBody
    public AjaxResult expired()
    {
        return AjaxResult.expired("登录失效，请重新登录");
    }
}
